package com.ruoyi.wx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 user
 *
 * @author hxie
 * @date 2021-01-04
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户 ID */
    private Long userid;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String phone;

    /** 用户头像 */
    @Excel(name = "用户地址")
    private String address;

    /** 微信登录openid */
    @Excel(name = "openid")
    private String weixinOpenid;

    /** 正常 禁用 */
    @Excel(name = "用户状态")
    private String status;

    public void setUserid(Long userid)
    {
        this.userid = userid;
    }

    public Long getUserid()
    {
        return userid;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setWeixinOpenid(String weixinOpenid)
    {
        this.weixinOpenid = weixinOpenid;
    }

    public String getWeixinOpenid()
    {
        return weixinOpenid;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userid", getUserid())
                .append("username", getUsername())
                .append("phone", getPhone())
                .append("address", getAddress())
                .append("weixinOpenid", getWeixinOpenid())
                .append("status", getStatus())
                .toString();
    }
}
